﻿#ifndef TOOLBARZOOM_H
#define TOOLBARZOOM_H

#include <QToolBar>
class QSpinBox;
class QCheckBox;
class DisplayWidget;
class ToolBarZoom : public QToolBar
{
    Q_OBJECT
public:
    ToolBarZoom(const QString &title, QWidget *parent = Q_NULLPTR);
    ToolBarZoom(QWidget *parent = Q_NULLPTR);
    void attach(DisplayWidget *widget);
    double getZoom();
private:
    void initContent();
private:
    QSpinBox *spinBox;
    QCheckBox * checkBox;

    DisplayWidget *centerWidget;
};

#endif // TOOLBARZOOM_H
